package com.qdxwx.data.mapper.user;

import com.qdxwx.common.page.PageRequest;
import com.qdxwx.models.user.UserDownload;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

/**
 * Qdx NetSchool Platform
 * @author qdxwx
 * @updateTime 2022/5/25
 * @description
 */
@Repository
public interface UserDownloadMapper {

    UserDownload selectById(long id);

    UserDownload selectByUserId(long userId, long infoId, int typeId);

    List<UserDownload> selectListPage(@Param("query") UserDownload query, @Param("page") PageRequest pageRequest);

    int count(@Param("query") UserDownload query);

    int insert(UserDownload log);

    int delete(long id);

    int updateCombine(long userId1, long userId2);
}

